package com.horsen.service.user.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.horsen.service.user.model.Order;
import com.horsen.service.user.model.VO.OrderListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author Horsen
 * @since 2021-05-10
 */
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 分页查询
     *
     * @param pageParam    分页参数
     * @param queryWrapper 条件构造器
     * @return 订单列表VO
     */
    List<OrderListVO> selectPage(
            Page<OrderListVO> pageParam,
            @Param(Constants.WRAPPER) LambdaQueryWrapper<Order> queryWrapper);
}
